import { createSSRApp } from "vue";
import uviewPlus, { setConfig } from 'uview-plus';
import 'uview-plus/index.scss';

import { Sqlite } from './utils/sqlite';

import App from "./App.nvue";
export function createApp() {
	const app = createSSRApp(App);
	app.config.globalProperties.db = new Sqlite();

	setConfig({
		config: {
			unit: 'rpx'
		},
		props: {

		}
	})


	app.use(uviewPlus)
	return {
		app,
	};
}